
					<!--<li><a href="#" class="bag">Сообщить о баге</a></li>
					<li><a href="#" class="write_admin">Написать администраторам</a></li>-->


<?php
$objSession = User_Session::instance();

if (isset($treeStructureType)) {
  echo '<ul class="left_botron">';

	if ($objSession->isLoggedIn()){
		if (isset($treeStructureType) ){
echo '
<li><a class="offer_razdel js_button" id="addNewFolderOffer" href="/" onclick="treeStructure.showOfferForm(\'' . $treeStructureType . '\'); return false;"><span>Предложить раздел</span></a></li>
';
?>
<form id="offerForm" method="POST" style="display: none;" onsubmit="treeStructure.addOffer(); return false;">
	<input type="hidden" name="idRootFolder" value=""/>
	<div class="box_trext_form">
		<label style="width:270px;">Название раздела</label>
		<div class="info_label">
			<input type="text" class="tx" name="folder" style="width:270px;"/>
		</div>
	</div>

	<div class="box_trext_form">
		<label style="width:270px;">Краткое описание</label>
		<div class="info_label">
			<textarea class="tx" name="description"  style="width:270px;"></textarea>
		</div>
	</div>

	<div class="box_trext_form">
		<label style="width:270px;"></label>
		<div class="info_label" style="float:right; margin-bottom: 5px;">
			<input class="main_btn" value="Добавить предложение" name="addfolderOffer" value="" style="margin-top:10px;" type="image" src="<?php echo  W_IMAGES; ?>button/btn_main_otpravit.gif" />
		</div>
	</div>
	<div class="clear"></div>


</form>
<div id="forAjaxLoadingFolderOffer"></div>
<li><a id="showOfferList" class="all_offers_list js_button" href="/" onclick="treeStructure.showOfferList(); return false;"><span>Весь список заявок</span></a></li>
<?php
		}
	}

/*  if ($treeStructureType == 'question') {*/ //Модуль ВО
//    echo TreeStructure::checkNewEssenceCanBeAdded($idFolder) ?
//      '<span style="background: #0f0;">YES</span>'  :
//      '<span style="background: #f00;">NO</span>';
//    if (isset($idFolder) && TreeStructure::checkNewEssenceCanBeAdded($idFolder)){
/*    	echo '<li><a href="' . W_ABSPATH . 'question/add/' . $idFolder . '"><b>Новый вопрос</b></a></li>';*/
//    }
/*  }*/

//	$idRootFolder = TreeStructure::getIdFolderFromCurId($treeStructureCurId);
//	$arrOfferFolders = Offer::getAllOfferedCurEssence('folder', 'NULL');
	$arrOfferFolders = Offer::getAllOfferedCurEssenceWithoutIdRoot('folder');
	echo '<div id="offerList" style="display: none;">';
	View_TreeStructure::viewOfferFoler($arrOfferFolders);
	echo '</div>';

  echo '</ul>';
}




?>